import service from '@/utils/request'

export const useBaseClassApi = (id) => {
  return service.get('/maku-generator/gen/baseclass/' + id)
}

export const useBaseClassListApi = () => {
  return service.get('/maku-generator/gen/baseclass/list')
}

export const useBaseClassSubmitApi = (dataForm) => {
  if (dataForm.id) {
    return service.put('/maku-generator/gen/baseclass', dataForm)
  } else {
    return service.post('/maku-generator/gen/baseclass', dataForm)
  }
}
